/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.publish.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.equipment.entity.EleEquipment;
import com.thinkgem.jeesite.modules.publish.entity.EleSourceGroupPublish;
import com.thinkgem.jeesite.modules.sys.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 资源发布包DAO接口
 * @author unnamed
 * @version 2017-06-04
 */
@MyBatisDao
public interface EleSourceGroupPublishDao extends CrudDao<EleSourceGroupPublish> {

    void batchInsertSource(Map<String,List<EleSourceGroupPublish>> params);
    List<EleSourceGroupPublish> findListByEquipmentId(@Param("equipmentId")String equipmentId,@Param("status")String status);
    void updatePublishStatus(@Param("publishId")String publishId,@Param("status")String status);
    List<EleSourceGroupPublish> findListByEquipments(@Param("list")List<EleEquipment> list,@Param("status")String status);
    List<EleSourceGroupPublish> findEleEleSourceGroupForCheck(@Param("users")List<User> list,@Param("status")String status);
	int batchUpdateGroupStatus(@Param("groups")String groups,@Param("status")String status,@Param("checker")String checker);
    int dealApprovalGroupStatus(@Param("groups")String groups,@Param("status")String status);
    int dealApplyGroupStatus(@Param("groups")String groups,@Param("status")String status);
}